package cn.kgc.mapper;


import cn.kgc.entity.Emp;
import cn.kgc.vo.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmpMapper {
    public List<Emp> getAllEmp(Page page);
    public Emp getEmpById(Integer id);
    public void addEmp(Emp emp);
    public void update(Emp emp);
    public void deleteEmpById(Integer id);

    Integer countEmpByName(String name);

    Integer countEmp();
}
